<!DOCTYPE html>
<html lang="zh-cn">
<head>
	<meta charset="utf-8">
	<meta name="viewport" content="width=device-width, initial-scale=1.0, maximum-scale=1.0, user-scalable=no">
	<title>
	 
		微擎团队 -
	 
			你能早起吗 
	 
			- Powered by WE7.CC 
		</title>
	<meta name="format-detection" content="telephone=no, address=no">
	<meta name="apple-mobile-web-app-capable" content="yes" /> <!-- apple devices fullscreen -->
	<meta name="apple-touch-fullscreen" content="yes"/>
	<meta name="apple-mobile-web-app-status-bar-style" content="black-translucent" />
	<meta name="keywords" content="微擎,微信,微信公众平台,we7.cc" />
	<meta name="description" content="公众平台自助引擎（www.we7.cc），简称微擎，微擎是一款免费开源的微信公众平台管理系统，是国内最完善移动网站及移动互联网技术解决方案。" />
	<link rel="shortcut icon" href="http://zaoqi.hcys666.com/attachment/images/global/wechat.jpg" />
	<script src="https://res.wx.qq.com/open/js/jweixin-1.3.2.js"></script>
	<script type="text/javascript" src="http://zaoqi.hcys666.com/app/resource/js/app/util.js"></script>
	<script src="http://zaoqi.hcys666.com/app/resource/js/require.js"></script>
	<script type="text/javascript" src="http://zaoqi.hcys666.com/app/resource/js/lib/jquery-1.11.1.min.js?v=20170802"></script>
	<script type="text/javascript" src="http://zaoqi.hcys666.com/app/resource/js/lib/mui.min.js?v=20170802"></script>
	<script type="text/javascript" src="http://zaoqi.hcys666.com/app/resource/js/app/common.js?v=20170802"></script>
	<link href="http://zaoqi.hcys666.com/app/resource/css/bootstrap.min.css?v=20170802" rel="stylesheet">
	<link href="http://zaoqi.hcys666.com/app/resource/css/common.min.css?v=20170802" rel="stylesheet">
	<script type="text/javascript">
	if(navigator.appName == 'Microsoft Internet Explorer'){
		if(navigator.userAgent.indexOf("MSIE 5.0")>0 || navigator.userAgent.indexOf("MSIE 6.0")>0 || navigator.userAgent.indexOf("MSIE 7.0")>0) {
			alert('您使用的 IE 浏览器版本过低, 推荐使用 Chrome 浏览器或 IE8 及以上版本浏览器.');
		}
	}
	window.sysinfo = {
		'uniacid': '1',		'acid': '1','openid': '905',				'siteroot': 'http://zaoqi.hcys666.com/',
		'siteurl': 'http://zaoqi.hcys666.com/app/index.php?i=1&c=entry&tid=h18042615393900090550&do=pay&m=hai105_daka',
		'attachurl': 'http://cdn.falvboke.com/',
		'attachurl_local': 'http://zaoqi.hcys666.com/attachment/',
		'attachurl_remote': 'http://cdn.falvboke.com/',
		'MODULE_URL': 'http://zaoqi.hcys666.com/addons/hai105_daka/',		'cookie' : {'pre': '0a52_'}
	};
	// jssdk config 对象
	jssdkconfig = null || {};
	// 是否启用调试
	jssdkconfig.debug = false;
	jssdkconfig.jsApiList = [
		'checkJsApi',
		'onMenuShareTimeline',
		'onMenuShareAppMessage',
		'onMenuShareQQ',
		'onMenuShareWeibo',
		'hideMenuItems',
		'showMenuItems',
		'hideAllNonBaseMenuItem',
		'showAllNonBaseMenuItem',
		'translateVoice',
		'startRecord',
		'stopRecord',
		'onRecordEnd',
		'playVoice',
		'pauseVoice',
		'stopVoice',
		'uploadVoice',
		'downloadVoice',
		'chooseImage',
		'previewImage',
		'uploadImage',
		'downloadImage',
		'getNetworkType',
		'openLocation',
		'getLocation',
		'hideOptionMenu',
		'showOptionMenu',
		'closeWindow',
		'scanQRCode',
		'chooseWXPay',
		'openProductSpecificView',
		'addCard',
		'chooseCard',
		'openCard',
		'openAddress'
	];
	</script>
</head>
<body>
<div class="container container-fill">
<div class="mui-content pay-method">
	<h5 class="mui-desc-title mui-pl10">订单详情</h5>
	<ul class="mui-table-view">
		<li class="mui-table-view-cell">
			商品名称<span class="mui-pull-right mui-text-muted">打卡挑战</span>
		</li>
		<li class="mui-table-view-cell">
			订单编号<span class="mui-pull-right mui-text-muted">h18042615393900090550</span>
		</li>
		<li class="mui-table-view-cell">
			商家名称<span class="mui-pull-right mui-text-muted">你能早起吗</span>
		</li>
				<li class="mui-table-view-cell">
			商品价格<span class="mui-pull-right mui-text-success mui-big mui-rmb">10.00 元</span>
		</li>
	</ul>
			<ul class="mui-table-view">
		<li class="mui-table-view-cell mui-table-view-chevron">
			还需支付<span class="mui-pull-right mui-text-success mui-big mui-rmb js-need-pay" data-price="10.00">10.00 元</span>
		</li>
	</ul>
	<h5 class="mui-desc-title mui-pl10">选择支付方式</h5>
	<ul class="mui-table-view mui-table-view-chevron pay-style hide">
				<li class="mui-table-view-cell credit">
			<a class="mui-navigate-right mui-media credit-js-pay" href="javascript:;">
				<form action="./index.php?i=1&c=mc&a=cash&do=credit&" method="post" id="credit_pay">
					<input type="hidden" name="params" value="eyJ0aWQiOiJoMTgwNDI2MTUzOTM5MDAwOTA1NTAiLCJvcmRlcnNuIjoiaDE4MDQyNjE1MzkzOTAwMDkwNTUwIiwidGl0bGUiOiJcdTYyNTNcdTUzNjFcdTYzMTFcdTYyMTgiLCJmZWUiOiIxMC4wMCIsInVzZXIiOiI5MDUiLCJtb2R1bGUiOiJoYWkxMDVfZGFrYSJ9" />
					<input type="hidden" name="code" value="" />
					<input type="hidden" name="coupon_id" value="" />
				</form>
				<img src="resource/images/money.png" alt="" class="mui-media-object mui-pull-left"/>
				<span class="mui-media-body mui-block">
					余额
					<span class="mui-block mui-text-muted mui-rmb mui-mt5"> 0.00</span>
				</span>
			</a>
		</li>
										<li class="mui-table-view-cell mui-disabled js-wechat-pay">
			<a class="mui-navigate-right mui-media" href="javascript:;">
				<form action="./index.php?i=1&c=mc&a=cash&do=wechat&" method="post">
					<input type="hidden" name="params" value="eyJ0aWQiOiJoMTgwNDI2MTUzOTM5MDAwOTA1NTAiLCJvcmRlcnNuIjoiaDE4MDQyNjE1MzkzOTAwMDkwNTUwIiwidGl0bGUiOiJcdTYyNTNcdTUzNjFcdTYzMTFcdTYyMTgiLCJmZWUiOiIxMC4wMCIsInVzZXIiOiI5MDUiLCJtb2R1bGUiOiJoYWkxMDVfZGFrYSJ9" />
					<input type="hidden" name="code" value="" />
					<input type="hidden" name="coupon_id" value="" />
					<input type="hidden" name="mix_pay" value="" />
				</form>
				<img src="resource/images/wx-icon.png" alt="" class="mui-media-object mui-pull-left"/>
				<span class="mui-media-body mui-block">
					<span id="wetitle">微信支付</span>
					<span class="mui-block mui-text-muted mui-mt5">微信支付,安全快捷(必须使用微信内置浏览器)</span>
				</span>
			</a>
		</li>
		

		<li class="mui-table-view-cell mui-disabled js-webwxapp-pay hide">
			<a class="mui-navigate-right mui-media" href="javascript:;">

				<img src="resource/images/wx-icon.png" alt="" class="mui-media-object mui-pull-left"/>
				<span class="mui-media-body mui-block">
					<span id="wetitle">微信支付</span>
					<span class="mui-block mui-text-muted mui-mt5">微信支付,安全快捷</span>
				</span>
			</a>
		</li>


						<li class="mui-table-view-cell">
			<a class="mui-navigate-right mui-media js-pay" href="javascript:;">
				<form action="./index.php?i=1&c=mc&a=cash&do=alipay&" method="post">
					<input type="hidden" name="params" value="eyJ0aWQiOiJoMTgwNDI2MTUzOTM5MDAwOTA1NTAiLCJvcmRlcnNuIjoiaDE4MDQyNjE1MzkzOTAwMDkwNTUwIiwidGl0bGUiOiJcdTYyNTNcdTUzNjFcdTYzMTFcdTYyMTgiLCJmZWUiOiIxMC4wMCIsInVzZXIiOiI5MDUiLCJtb2R1bGUiOiJoYWkxMDVfZGFrYSJ9" />
					<input type="hidden" name="code" value="" />
					<input type="hidden" name="coupon_id" value="" />
					<input type="hidden" name="mix_pay" value="" />
				</form>
				<img src="resource/images/zfb-icon.png" alt="" class="mui-media-object mui-pull-left"/>
				<span class="mui-media-body mui-block">
					支付宝
					<span class="mui-block mui-text-muted mui-mt5">简单、安全、快速</span>
				</span>
			</a>
		</li>
							</ul>
</div>
<script type="text/javascript">
	check_password = '';
	$('.credit-js-pay').click(function() {
					$(this).find('form').submit();
			return true;
							mui.prompt('','','请输入6位数的密码',['<div id="submit_password">确定</div>'],function(){
					$.post("./index.php?i=1&c=mc&a=cash&do=check_password&", {'password' : $(".mui-popup-input input").val()}, function(data) {
						data = $.parseJSON(data);
						if (data.message == 0) {
							check_password = 'pass';
							$('#credit_pay').submit();
							return false;
						} else {
							alert('密码输入错误');
							return false;
						}
					});
				},'div')
				document.querySelector('.mui-popup-input input').type='password';
				return false;
			});
				$('[name="mix"]').click(function() {
			if ($(this).prop('checked') === true) {
				$('[name="mix_pay"]').val(true);
				fee = $('.js-need-pay').data('price') - "{!empty($credtis[$setting['creditbehaviors']['currency']]) ? $credtis[$setting['creditbehaviors']['currency']] : 0}";
				$('.credit').hide();
			} else {
				$('[name="mix_pay"]').val(false);
				fee = parseFloat($('.js-need-pay').data('price')) + parseFloat("{!empty($credtis[$setting['creditbehaviors']['currency']]) ? $credtis[$setting['creditbehaviors']['currency']] : 0}");
				$('.credit').show();
			}
			$('.js-need-pay').data('price', fee);
			$('.js-need-pay').html(fee + '元');
		});
	if(window.__wxjs_environment === 'miniprogram') {
		$('.pay-style').removeClass('hide');
		$('.pay-style li').hide();
		$('.js-webwxapp-pay').removeClass('hide');
		$('.pay-style .js-webwxapp-pay').show();
		$('.js-webwxapp-pay').click(function(){
			wx.miniProgram.navigateTo({
				url: "/wxapp_web/pages/view/pay?orderid=h18042615393900090550&module_name=hai105_daka&title=打卡挑战"
			})
		});
	} else {
		$('.pay-style').removeClass('hide');
		$('.pay-style').show();
	}
	document.addEventListener('WeixinJSBridgeReady', function onBridgeReady() {
		$('.js-wechat-pay').removeClass('mui-disabled');
		$('.js-wechat-pay a').addClass('js-pay');
		$('#wetitle').html('微信支付');
	});

	$(document).on('click', '.js-pay', function() {
		$(this).prop('disabled', true);
		$(this).find('form').submit();
	})
</script>


